From d6c5e7cbbec5bd791a91ee02e1734a8edb38f267 Mon Sep 17 00:00:00 2001 From: robertl Date: Fri, 17 Nov 2006 20:03:23 +0000 Subject: [PATCH] Fix crash in google reader on multiple files. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@2514 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/google.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gpsbabel/google.c b/gpsbabel/google.c index 6ff6a8f59..3c126ff62 100644 --- a/gpsbabel/google.c +++ b/gpsbabel/google.c @@ -345,6 +345,20 @@ google_read(void) } } xfree( script ); + script = NULL; + } + + /* + * 'Tis better to leak than crash when we are merging and + * don't see an 'end' in the first file. This feels a bit + * like plastering over a deeper problem... + * + */ + if ( encoded_points ) { + encoded_points = NULL; + } + if ( encoded_levels ) { + encoded_levels = NULL; } } #endif -- 2.30.2